home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / mac / hypercrd / hc1_2_x / popupmen.sit / PopUpMenu 2.0b2 / card_2839.txt < prev    next >
Text File  |  1989-09-13  |  3KB  |  103 lines

  1. -- card: 2839 from stack: in.0b2
  2. -- bmap block id: 0
  3. -- flags: 4000
  4. -- background id: 3155
  5. -- name: 
  6.  
  7.  
  8. -- part 1 (button)
  9. -- low flags: 00
  10. -- high flags: 2000
  11. -- rect: left=352 top=95 right=120 bottom=381
  12. -- title width / last selected line: 0
  13. -- icon id / first selected line: 21676 / 21676
  14. -- text alignment: 1
  15. -- font id: 0
  16. -- text size: 12
  17. -- style flags: 0
  18. -- line height: 16
  19. -- part name: New Button
  20. ----- HyperTalk script -----
  21. on mouseUp
  22.   show card field "Note"
  23. end mouseUp
  24.  
  25.  
  26.  
  27. -- part 2 (field)
  28. -- low flags: 81
  29. -- high flags: 2004
  30. -- rect: left=204 top=83 right=239 bottom=359
  31. -- title width / last selected line: 0
  32. -- icon id / first selected line: 0 / 0
  33. -- text alignment: 0
  34. -- font id: 3
  35. -- text size: 10
  36. -- style flags: 0
  37. -- line height: 13
  38. -- part name: Note
  39. ----- HyperTalk script -----
  40. on mouseUp
  41.   hide the target
  42. end mouseUp
  43.  
  44.  
  45. -- part 4 (button)
  46. -- low flags: 00
  47. -- high flags: 2000
  48. -- rect: left=163 top=303 right=328 bottom=192
  49. -- title width / last selected line: 0
  50. -- icon id / first selected line: 21676 / 21676
  51. -- text alignment: 1
  52. -- font id: 0
  53. -- text size: 12
  54. -- style flags: 0
  55. -- line height: 16
  56. -- part name: New Button
  57. ----- HyperTalk script -----
  58. on mouseUp
  59.   show card field "AboutΓǪ"
  60. end mouseUp
  61.  
  62.  
  63.  
  64. -- part 5 (field)
  65. -- low flags: 81
  66. -- high flags: 2004
  67. -- rect: left=155 top=240 right=306 bottom=305
  68. -- title width / last selected line: 0
  69. -- icon id / first selected line: 0 / 0
  70. -- text alignment: 0
  71. -- font id: 3
  72. -- text size: 10
  73. -- style flags: 0
  74. -- line height: 13
  75. -- part name: About╔
  76. ----- HyperTalk script -----
  77. on mouseUp
  78.   hide the target
  79. end mouseUp
  80.  
  81.  
  82. -- part contents for background part 10
  83. ----- text -----
  84. PopUpMenu( menuItems, checkedItem, horizontal location, vertical 
  85. ┬á┬á┬á┬á┬á┬á┬á┬á┬álocation )
  86.  
  87. The first parameter, menuItems, is an item list, with each item being a menu choice.  The number of menu items is limited only by available memory.
  88.  
  89. The second parameter, checkedItem, will place a check mark next to the indicated item.  The menu is  position so the checked item is under the mouse. If checkedItem is omitted or empty then no check mark is made.
  90.  
  91. The last two parameters are global coordinates used to position the menu on the screen. If omitted then the current position of the mouse is used.
  92.  
  93. All parameters are optional.
  94.  
  95. -- part contents for card part 2
  96. ----- text -----
  97. The menuItems parameter is not restricted to just an item list;  Commas, semicolons, carriage returns, linefeeds, and tabs can all be used to separate menu items.
  98.  
  99. A Menu item must have at least one character and no more than 255.
  100.  
  101. -- part contents for card part 5
  102. ----- text -----
  103. If you use PopUpMenu without any parameters then version and copyright information is returned.